<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>年审信息查询</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body>

  <form method="post">
  <table class="bordernone" width="60%" height="100" align="center" border="0">
  <tr>
    <td class="bg_blue" width="150" align="right">年度：</td>
    <td width="100">
    <select name="annualVeriYear">
    <option value="">请选择</option>
     <c:forEach var="x" begin="${startYear}" end="${endYear}" step="1">
    <option value="${x}" <c:if test="${x  ==  param.annualVeriYear}">selected</c:if>>${x}</option>
    </c:forEach>
    </select>
    </td>
    <td class="bg_blue" width="100" align="right">年审状态：</td>
    <td width="244">
    <select name="annualVeriState">
    <option value="">请选择</option>
    <option value="0" <c:if test="${'0'  ==  param.annualVeriState}">selected</c:if>>待审批</option>
    <option value="1" <c:if test="${'1'  ==  param.annualVeriState}">selected</c:if>>通过审批</option>
    <option value="2" <c:if test="${'2'  ==  param.annualVeriState}">selected</c:if>>未通过审批</option>
    </select>
    </td>
  </tr>
  <tr>
    <td class="bg_blue" align="right">单位名称：</td>
    <td colspan="3">
    <input type="text" name="empInfoName" value="${param.empInfoName}">
    </td>
  </tr> 
  <tr>
    <td class="nohover" colspan="4" align="center"><input class="buttonsearch" type="submit" value="查询">&nbsp;    <input class="buttonreset" type="reset" value="重置" ></td>
  </tr>
</table>
 </form>
<form action="">
<table width="100%" border="1">
  <tr>
    <th width="32">序号</th>
    <th width="40">详细</th>
    <th width="60">审批年度</th>
    <th width="280">单位名称</th>
    <th width="60">申报日期</th>
    <th width="70">状态</th>
    <th width="70">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${pageNum + lineInfo.count}</td>
    <td><a href="<%=request.getContextPath()%>/AnnualVeri.do?method=detail&aid=${prod.annualVeriId}">详细</a></td>
    <td>${prod.annualVeriYear}</td>
    <td>${prod.employerInfo.empInfoName}</td>
    <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.annualVeriReportTime}"/></td>
	<td><c:if test="${prod.annualVeriState == '0'}">待审批</c:if><c:if test="${prod.annualVeriState == '1'}"><font color="green">通过审批</font></c:if><c:if test="${prod.annualVeriState == '2'}"><font color="red">未通过审批</font></c:if></td>
	<td>
	<c:if test="${prod.annualVeriState == '0'}">
	 <input name="button2" type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/AnnualVeri.do?method=toApply&aid=${prod.annualVeriId}'" value="审批" />
    </c:if>
	</td>
  </tr>
  </c:forEach>
    <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    <form name="pageForm" method="post">
    <input type="hidden" name="annualVeriYear" value="${param.annualVeriYear}"/>
    <input type="hidden" name="empInfoName" value="${param.empInfoName}"/>
    <input type="hidden" name="annualVeriState" value="${param.annualVeriState}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
  </table>
</form>
</body>
</html>
